{include file="common/head"}
<head>
    <title>驾校信息</title>
    <style>
        a{text-decoration:none;}
        .form-control[type='text']{width:70%;display: initial;}
        label{width:20%;}
    </style>
</head>
<body >
<div class="container-fluid p-3 my-3 " style="max-width:800px;margin:10px;">
    <h2>驾校信息</h2>
    <form method="post" action="/index.php/dept/edit" enctype="multipart/form-data"> 
      <div class="mb-3">
        <label for="name" class="form-label">驾校名称:</label>
        <input type="text" class="form-control" id="name" name="name" value="{$data.name}"  />
      </div>

      <div class="mb-3">
        <label for="address" class="form-label">驾校地址:</label>
        <input type="text" class="form-control" id="address" name="address" value="{$data.address}"  />
      </div>
      <div class="mb-3">
        <label for="boss_name" class="form-label">法人姓名:</label>
        <input type="text" class="form-control" id="boss_name" name="boss_name" value="{$data.boss_name}"  />
      </div>      
      <div class="mb-3">
        <label for="tel" class="form-label">联系电话:</label>
        <input type="text" class="form-control" id="tel" name="tel" value="{$data.tel}"  />
      </div>      

      <div class="mb-3">
        <label for="id_img" class="form-label">身份证:</label>
        <img src="{$data.id_img}" style="width:200px;border: 1px solid #ccc;" />
        <img src="{$data.id_img2}" style="width:200px;border: 1px solid #ccc;" />
      </div>           
      <div class="mb-3">
        <label for="credit_code" class="form-label">社会信用代码:</label>
        <input type="text" class="form-control" id="credit_code" name="credit_code" value="{$data.credit_code}"  />
      </div>
      <div class="mb-3">
        <label for="bank_account" class="form-label">对公账号:</label>
        <input type="text" class="form-control" id="bank_account" name="bank_account" value="{$data.bank_account}"  />
      </div>
      <div class="mb-3">
        <label for="bank_name" class="form-label">开户行:</label>
        <input type="text" class="form-control" id="bank_name" name="bank_name" value="{$data.bank_name}"  />
      </div>      
      <div class="mb-3">
        <label for="bus_license_img" class="form-label">营业执照:</label>
        <img src="{$data.bus_license_img}" style="width:200px;border: 1px solid #ccc;" />
        <!-- <input type="file" class="form-controlx" id="business_license_img" name="business_license_img"   /> -->
      </div>            

      <div class="mb-3">
        <label for="shop_img" class="form-label">其它资格证照:</label>
        <img src="{$data.shop_img}" style="width:200px;border: 1px solid #ccc;" />
        <!-- <input type="file" class="form-controlx" id="other_img" name="other_img"   /> -->
      </div>
<!--       <div class="mb-3">
        <label for="pos1" class="form-label">地图坐标:</label>
        <input type="pos1" class="form-control" id="pos1" name="pos1" value="{$data.pos1}"  />
        <input type="pso2" class="form-control" id="pos2" name="pos2" value="{$data.pos2}"  />
      </div> -->

  </form>


</div>

</body>

<script type="text/javascript">
$(function(){
        $("img").on('click',function(){
        var img = $(this).attr('src');
        if(!img.trim()) return;

        if($(this).prop('width')<=310){
            $(this).css({'width':''});
        }else{
            $(this).css({'width':'200px'});
        }
        // layer.open({
        //   type:1,
        //   title:'',
        //   closeBtn: 0, //不显示关闭按钮
        //  // anim: 1,
        //   time: 5*1000,
        //   shadeClose: true, //开启遮罩关闭              
        //   skin: 'layui-layer-rim', 
        //   content: "<img src='"+img+"' style='height:100%'>"
        // });
    })
})
    
</script>


</body>
</html>
